---
---

<!DOCTYPE html>
<html lang=en>

<head>
    <meta charset=utf-8>

    <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/common/css/stylesheet.css"/>
    <link rel="stylesheet" href="{{ site.baseurl }}/common/css/stylesheet-fonts.css" type="text/css" charset="utf-8">
    <link rel="icon" href="{{ site.baseurl }}/common/css/favicon.ico" type="image/x-icon">
    <link rel="shortcut icon" href="{{ site.baseurl }}/common/css/favicon.ico" type="image/x-icon">
    <title>EE 1.14 Upgrade: Running the EE 1.13.0.0 or EE 1.13.0.1 URL Redirect Script</title>

</head>

<body>
<a name="top"></a>
<img src="{{ site.baseurl }}/common/images/m1x/m1xheader.png" width="1024" alt="header" />

<h1>EE 1.14 Upgrade: Running the EE 1.13.0.0 or EE 1.13.0.1 URL Redirect Script</h1>
<p><a href="{{ site.m1xgithuburl }}guides/m1x/install/installing_upgrade_from-ee11300-or-01.html" target="_blank">Edit this page on GitHub <img src="{{ site.baseurl }}/common/images/github_icon.png" height="15px"></a></p>


<div id="content"> 

<p>This article is part of the Magento Enterprise Edition (EE) upgrade documentation. If you're looking for something else, <a href="http://www.magentocommerce.com/knowledge-base" target="_blank">click here</a> to go back to the Magento Knowledge Base.</p>
<p>This article applies to the following Magento EE upgrades:</p>
<ul><li>From EE 1.13.0.1 to EE 1.13.0.2</li>
<li>From EE 1.13.0.1 to EE 1.13.1.0</li>
<li>From EE 1.13.0.1 to EE 1.14.0.0</li></ul>
<p>If your upgrade is not in the preceding list, skip this article and continue with <a href="{{ site.m1xgdeurl }}install/installing_upgrade_details.html#upgrade-manual-run">Completing the Magento Upgrade</a>.</p>
<p>This article discusses how to run the URL redirect script that creates HTTP 301 (Moved Permanently) redirects for any duplicate product URL keys. This enables <strong>Previous</strong> links in your web store to work, for example.</p>
<p>For more information about URL changes, see the <a href="http://www.magentocommerce.com/knowledge-base/entry/ee113-later-release-notes#ee113-11302-seo" target="_blank">EE 1.13.0.2 Release Notes</a>. (Release Notes for the latest release are <a href="http://www.magentocommerce.com/knowledge-base/entry/ee113-later-release-notes#ee1131-11310">here</a>.)</p>
<p>To create redirects for your URLs, perform the following tasks in the order shown:</p>
<ol><li><a href="#upgrade-manual-post-upgrade-ee11300-disable-cron">Verifying that cron is Disabled</a></li>
<li><a href="#upgrade-manual-post-upgrade-ee11300-script">Running the Script</a></li></ol> 

<h2 id="upgrade-manual-post-upgrade-ee11300-disable-cron">Verifying that cron is Disabled</h2>
<p>It's very important to stop cron jobs from running until after the upgrade script completes. To do so, enter one of the following commands as a user with <tt>root</tt> privileges:</p>
<ul><li>Ubuntu: <tt>service crond stop</tt></li>
<li>CentOS: <tt>service cron stop</tt></li></ul>

<h2 id="upgrade-manual-post-upgrade-ee11300-script">Running the Script</h2>
<p>This section discusses how to run the URL redirect script to create permanent redirects for any URLs that changed in EE 1.13.1.0.</p>
<p class="kb-notes"><strong>Note:</strong> The time the script takes to run and the amount of memory it uses is directly proportional to the size of your database.</p>
<p>To run the script:</p>
<ol><li>Change to your Magento installation directory.</li>
<li>As the user who owns the files (typically, either <tt>root</tt> or the web server user), enter the following command:<br />
<code>php -f shell/url_migration_from_1_13_0_0_to_1_13_0_2.php</code></li>
<li>Wait while the script runs.<br />
Messages like the following display to indicate progress:<br />
<pre>[INFO]: Initialization...
[INFO]: Start url rewrites processing from 1.13.0.0 to 1.13.0.2 ...
[INFO]: Start root category "Default Category" processing ...
[INFO]: Start root category "test" processing ...
[INFO]: Executed in <em>time</em></pre></li>
<li>If the script succeeded, continue with <a href="#upgrade-manual-run">Completing the Magento Upgrade</a>.</li></ol>
<p><strong>故障排除</strong></p>
<p>If errors display, check <tt>[your Magento install dir]/shell/migration.log</tt> for exceptions. Following are errors that might display when you run the migration script:</p>
<ul><li><tt>Application is not installed yet, please complete install wizard first</tt></li>
<li><tt>PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user '<em>name</em>'@'<em>hostname</em>' (using password: YES)' in /var/www/magento/lib/Zend/Db/Adapter/Pdo/Abstract.php</tt></li></ul>
<p>If one of these displays, make sure you copied <tt>[your Magento install dir]/app/etc/local.xml</tt> from your development system to the production system. Edit it if necessary to reference the production database instance. After you copy and edit <tt>local.xml</tt>, run the URL redirect script again.</p>
<p>Continue your upgrade with <a href="{{ site.m1xgdeurl }}install/installing_upgrade_details.html#upgrade-manual-run" target="_blank">Completing the Magento Upgrade</a>.</p>

</body>
</html>